#include "InCommentC.h"

InCommentC::InCommentC(Scope* pParentScope)
{
    m_eType=Scope::eScopeCommentC;
    m_pxParent = pParentScope;
    m_cLookAhead = '\0';
}

InCommentC::~InCommentC(void)
{
}

Scope* InCommentC::process(Token& inToken, bool &bIsEndOfScope)
{
    char cDelimiter = char(inToken);

    bIsEndOfScope=false;
    if(inToken.m_bIsDelimiter)
    {
        if('*' == m_cLookAhead)
        {
            if('/'==cDelimiter)
                bIsEndOfScope= true;
        }
    }
    m_cLookAhead = cDelimiter;

    m_asWorkspace.push_back(inToken.m_sValue);
    return NULL;
}